
import request from "@/utils/request";
/*
 * 获取商品表单头数量；
 * */
export function getGoodsRuleListApi(data) {
    return request({
        url: '/api/product.rule/index',
        method: 'POST',
        data
    })
}

export function getGoodsRulePickerApi(data) {
    return request({
        url: '/api/product.rule/all',
        method: 'POST',
        data
    })
}

export function editGoodsRuleApi (data) {
    return request({
        url: '/api/product.rule/save',
        method: 'POST',
        data
    })
}

export function readGoodsRuleApi(data) {
    return request({
        url: '/api/product.rule/read',
        method: 'POST',
        data
    })
}


export function deleteGoodsAttrApi(data) {
  return request({
    url: "/api/product.rule/delete",
    method: "POST",
    data,
  });
}

/**
 * @description 商品管理 -- 生成属性
 * @param {Object} param data {Object} 传值参数
 */
export function generateAttrApi(data) {
    return request({
        url: `/api/product.spec/create`,
        method: 'POST',
        data
    })
}


